package com.zelin.service.impl;

import com.zelin.mapper.ClassesMapper;
import com.zelin.mapper.StudentMapper;
import com.zelin.pojo.student;
import com.zelin.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Autowired
    private ClassesMapper classesMapper;



    @Override
    public List<student> findAll() {
     return studentMapper.findAll();

    }

    @Override
    public List<student> findAll2() {
        return studentMapper.findAll2();
    }

    @Override
    public List<student> findAll3() {
        return studentMapper.findAll3();
    }

    @Override
    public void insert(student student) {
        studentMapper.insert(student);
    }

    @Override
    public List<student> findStudentsByWord(String string) {
        return studentMapper.findStudentsByWord(string);
    }

    @Override
    public void updateStudent(student student) {
         studentMapper.updateStudent(student);
    }

    @Override
    public student findById(int sid) {
        return studentMapper.findById(sid);
    }


}

